/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jiadakeji.ppm.modules.business.entity;

import org.hibernate.validator.constraints.Length;

import com.jiadakeji.ppm.common.persistence.DataEntity;

/**
 * 报修Entity
 * @author HHAOYU
 * @version 2019-07-09
 */
public class Repair extends DataEntity<Repair> {
	
	private static final long serialVersionUID = 1L;
	private String roomId;		// room_id
	private String customerId;		// cusomter_id
	private String content;		// content
	private String status;		// status

	private Room room;
	private Customer customer;
	private String communityName;
	private String buildingName;


	public Repair() {
		super();
	}

	public Repair(String id){
		super(id);
	}

	@Length(min=0, max=32, message="room_id长度必须介于 0 和 32 之间")
	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}

	@Length(min=0, max=32, message="cusomter_id长度必须介于 0 和 32 之间")
	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	@Length(min=0, max=255, message="content长度必须介于 0 和 255 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=1, message="status长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}


	public Room getRoom() {
		return room;
	}

	public void setRoom(Room room) {
		this.room = room;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(String communityName) {
		this.communityName = communityName;
	}

	public String getBuildingName() {
		return buildingName;
	}

	public void setBuildingName(String buildingName) {
		this.buildingName = buildingName;
	}
}